import api from '@/libs/request'
/**
 * 获取模板列表
 * @param {number} current
 * @param {number} size
 */
export const doGetLogisticsTemplateList = (current: number, size: number) => {
    return api.get('gruul-mall-freight/logistics/template/get/list', {
        current,
        size,
    })
}
/**
 * 添加物流模板
 * @param {*} data
 */
export const doAddLogisticsTemplate = (data) => {
    return api.post('gruul-mall-freight/logistics/template/save/info', data)
}
/**
 * 删除物流模板
 * @param {*} id
 */
export const doDelLogisticsTemplate = (id) => {
    return api.delete(`gruul-mall-freight/logistics/template/delete/info/${id}`)
}
/**
 * 获取单个物流模板信息
 * @param {*} id
 */
export const doGetLogisticsTemplateInfoById = (id) => {
    return api.get(`gruul-mall-freight/logistics/template/get/info`, { id })
}

/**
 * 编辑单个物流模板信息
 * @param {*} data
 */
export const doPutLogisticsTemplateInfoById = (data: any) => {
    return api.post(`gruul-mall-freight/logistics/template/update/info`, data)
}
